import $http from '@/assets/js/http'

//这里是分站广告位js

//查询广告图列表
export function getAdsList(id, type, ) {
    return $http.get('/manage/fenzhan/ad/list', {
        params: { cityId: id, positionType: type, }
    });
}

//删除广告图
export function postDeleteAds(delId) {
    return $http.post('/manage/fenzhan/ad/delete', {
        id: delId
    });
}

//新增广告图
export function postAddAds(param) {
    return $http.post('/manage/fenzhan/ad/add', {
        cityId: param.cityId,
        positionType: param.positionType,
        img: param.img,
    });
}

//编辑广告图
export function postEditAds(param) {
    return $http.post('/manage/fenzhan/ad/update', {
        id: param.id, //广告位ID
        positionType: param.positionType, //位置类型：参照主站
        // cityId:param.cityId,
        img: param.img, //图片地址
    });
}